package com.group5.onlinegame.entity;

import java.sql.Timestamp;

public class Indent {
    private String status;//状态

    private Integer orderid;//订单编号

    private String userName;//用户账号

    private String pName;//商品名称

    private Integer costGolds;//金币单价

    private Integer costIngots;//元宝单价

    private Integer buynumber;//购买数量

    private Integer zGolds;//花费的金币

    private Integer zIngots;//花费的元宝

    private Timestamp time;//购买时间

    private String zName;//真实姓名

    private String phone;//联系电话

    private Integer adressCode;//邮政编码

    private String adress;//详细地址

    public Indent(){}

    public Indent(String status, Integer orderid, String userName, String pName, Integer costGolds, Integer costIngots, Integer buynumber, Integer zGolds, Integer zIngots, Timestamp time, String zName, String phone, Integer adressCode, String adress) {
        this.status = status;
        this.orderid = orderid;
        this.userName = userName;
        this.pName = pName;
        this.costGolds = costGolds;
        this.costIngots = costIngots;
        this.buynumber = buynumber;
        this.zGolds = zGolds;
        this.zIngots = zIngots;
        this.time = time;
        this.zName = zName;
        this.phone = phone;
        this.adressCode = adressCode;
        this.adress = adress;
    }

    @Override
    public String toString() {
        return "Indent{" +
                "status='" + status + '\'' +
                ", orderid=" + orderid +
                ", userName='" + userName + '\'' +
                ", pName='" + pName + '\'' +
                ", costGolds=" + costGolds +
                ", costIngots=" + costIngots +
                ", buynumber=" + buynumber +
                ", zGolds=" + zGolds +
                ", zIngots=" + zIngots +
                ", time=" + time +
                ", zName='" + zName + '\'' +
                ", phone='" + phone + '\'' +
                ", adressCode=" + adressCode +
                ", adress='" + adress + '\'' +
                '}';
    }

    public String getStatus() {
        if(status.equals("0")){
            status = "已发货";
        }else {
            status = "未发货";
        }
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public Integer getCostGolds() {
        return costGolds;
    }

    public void setCostGolds(Integer costGolds) {
        this.costGolds = costGolds;
    }

    public Integer getCostIngots() {
        return costIngots;
    }

    public void setCostIngots(Integer costIngots) {
        this.costIngots = costIngots;
    }

    public Integer getBuynumber() {
        return buynumber;
    }

    public void setBuynumber(Integer buynumber) {
        this.buynumber = buynumber;
    }

    public Integer getzGolds() {
        return zGolds;
    }

    public void setzGolds(Integer zGolds) {
        this.zGolds = zGolds;
    }

    public Integer getzIngots() {
        return zIngots;
    }

    public void setzIngots(Integer zIngots) {
        this.zIngots = zIngots;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public String getzName() {
        return zName;
    }

    public void setzName(String zName) {
        this.zName = zName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getAdressCode() {
        return adressCode;
    }

    public void setAdressCode(Integer adressCode) {
        this.adressCode = adressCode;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }
}
